package com.wedo.book.api;

import com.wedo.book.pojo.Author;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@RequestMapping("author")
public interface AuthorApi {
    /**
     * 根据作者id查找作者
     * @param aid
     * @return
     */
    @GetMapping
    public Author queryAuthorByAid(@RequestParam("aId")Long aid);
}
